package com.nbcio.iot.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nbcio.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备与分组关系
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("iot_device_group_rel")
public class IotDeviceGroupRel extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("group_id")
    private Long groupId;

    @TableField("device_id")
    private Long deviceId;
} 